import request from '@/router/axios';

export const getSetting = (current, size, params) => {
  return request({
    url: '/api/oms-system/miniapp/getsetting',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
export const updateSetting = (row) => {
  delete row['created_at']
  delete row['updated_at']
  return request({
    url: '/api/oms-system/miniapp/updatesetting',
    method: 'post',
    data: row
  })
}

